<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class LGCustomHTMLWidget extends CWidget {

    /*
     * @var array[CustomHTML]
     */
    public $customHTML;
    public $id;
    public $htmlOptions = array();

    public function init() {
	parent::init();

	if (!isset($this->customHTML)) {
	    throw new CException(Yii::t('zii', 'The "customHTML" property cannot be empty.'));
	}

	if (isset($this->id)) {
	    $this->htmlOptions['id'] = $this->id;
	}
    }

    public function run() {
	parent::run();

	$this->render('_customHTML', array('customHTML' => $this->customHTML));
    }
}

?>
